
package za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Decorator.Factory;

import za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Decorator.Model.Animal;
import za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Decorator.Model.LivingAnimal;



public class AnimalFactory 
{
    private static LivingAnimal livingAnimal = null;
    public static Animal createLivingAnimal() 
    {
        if( livingAnimal == null)
            livingAnimal = new LivingAnimal(); 
        return livingAnimal;
    }
}